//
//  textviewTableViewCell.m
//  gangquOASystem
//
//  Created by michael on 2018/7/26.
//  Copyright © 2018年 czd. All rights reserved.
//

#import "textviewTableViewCell.h"

@implementation textviewTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
    self.selectionStyle = UITableViewCellSelectionStyleNone;

_label = [[UILabel alloc]init];
_label.frame = CGRectZero;
  _label.textColor = [UIColor colorWithHexString:@"484848"];

    _label.font = [UIFont systemFontOfSize:14];

[self.contentView addSubview:_label];
      _textfield = [[zhucetextview alloc]init];
                    _textfield.delegate = self;

[self.contentView addSubview:_textfield];

}
    self.selectionStyle = UITableViewCellSelectionStyleNone;

return self;

}
- (void)textViewDidChange:(UITextView *)textView{
 textView.text =[textView.text stringByReplacingOccurrencesOfString:@" " withString:@""];


}
- (void)setString:(NSString *)string{

_string = string;
_label.text = _string;
}
- (void)setSeltag:(NSInteger)seltag{
_seltag = seltag;
_textfield.tag = _seltag;

}
- (void)layoutSubviews{
[super layoutSubviews];
//_textfield.tag = _seltag;
_label.frame =  CGRectMake(10, 0,KScreenWidth-20, 20);
_textfield.frame =  CGRectMake(10, _label.bottom, (KScreenWidth-20), 80);
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
